/**
 * @see https://leetcode-cn.com/problems/remove-k-digits/
 * @param {string} num
 * @param {number} k
 * @return {string}
 */
var removeKdigits = function (num, k) {
  if(num.length <= k) {
    return 0;
  }
  let start = num.substring(0, k) * 1;
  let stack = [];
  for (let i = 0; i < num.length; i++) {
    const element = array[i];
    
  }
  console.log(start)
};

removeKdigits("1432219", 3);